import io from 'socket.io-client'

export const socket = io('http://localhost:3000',
    {
        reconnection: true, // 重连
        reconnectionDelay: 1000, // 重连延迟
        reconnectionDelayMax: 5000, // 重连延迟最大值
        reconnectionAttempts: Infinity // 重连次数
    })

